<?php
/**
 * Created by PhpStorm.
 * User: yuguozhen
 * Date: 16/8/4
 * Time: 下午7:47
 */
namespace models\Timer\Count;
class GuidanceClassPublicModel extends \models\GuidanceClassPublicModel{

    //每日新增公共平台课程数
    public function EXPERT_CLASS($prev_start,$prev_end){

        $count  = $this->where('CREATE_TIME','>',$prev_start)
            ->where('CREATE_TIME','<',$prev_end)
            ->count();

     //   $sql = "select count(1) from `guidance_class_public` where CREATE_TIME > ".$prev_start." and CREATE_TIME < ".$prev_end;
//        $errpath = $this->config->logs->exec_timer_static_sql;
//        $this->monolog('exec_sql_static',$errpath,$level=\Monolog\Logger::INFO,$content=$sql,$slevel='info');

        return $count;
    }

}